home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 013a / xprt31.zip / XPRT.TXT < prev   
Text File  |  1991-10-11  |  7KB  |  196 lines

  1.                                  XPRT
  2.  
  3. XPRT formats text for output to the HP LaserJet Family, and compatible
  4. laser printers. Some of XPRT's features are:
  5.  
  6. 1. Graybar toggle - Provides shading of alternating lines of text to
  7.    help delineate lines of source code.
  8.  
  9. 2. Smart word wrap - Will wrap at a whitespace if possible. Maintains
  10.    text indentation (source code structure).
  11.  
  12. 3. Port Selection - Allow selection of LPT1, LPT2, LPT3, or a file
  13.    for output. If file is chosen, it can later be typed or copied to
  14.    the printer.
  15.  
  16. 4. Miniature Type - Allows combining subscriot, superscript, and
  17.    compressed print. This lets you cram lots more on a page.
  18.  
  19. 5. Menu or Command Line - Command line operation allows XPRT to be
  20.    called from another program for hands-off operation.
  21.  
  22.    The command line:
  23.  
  24.        XPRT somefile.txt p4
  25.  
  26.    Will produce an output file named 'filename.XPR' in the current
  27.    directory. If this file already exists, it will be overwritten
  28.    without warning.
  29.  
  30. 6. The current configuration of XPRT may be saved as the default.
  31.    Selecting 'S' from the menu establishes new default settings.
  32.  
  33. 7. If the resulting printout is 10 pages or more, XPRT will beep
  34.    upon completion. This is to prevent you from having to watch
  35.    the monitor for long periods of time.
  36.  
  37. XPRT will check for a printer connected to the port if an LPT is 
  38. selected. It cannot, however, determine it the printer is LaserJet
  39. compatible. It must assume that the operator knows. This is
  40. unavoidable as the LaserJet provides no means of identification
  41. via software.
  42.  
  43. Oh-by-the-way... The LaserJet II does not provide ELITE type without
  44. one of several font cartridges. If ELITE is selected but not
  45. available, the printer will default to COMPRESSED print. This does
  46. not apply to the LaserJet III.
  47.  
  48. If you experience problems viewing XPRT with a monochrome monitor,
  49. set an environment variable MONITOR equal to MONO in your autoexec.bat
  50. file.
  51.    i.e.    set MONITOR=MONO
  52.  
  53. Command line switches can all be jammed together or separated by 
  54. whitespace.
  55.  
  56.   Syntax: XPRT <filename> [switches]
  57.  
  58.    Where: filename = Name of text file to be printed, path included.
  59.           switches = Optional formatting switches (see below).
  60.  
  61. Switches: A - Compressed print.
  62.           B - Elite print.
  63.           C - Pica print.
  64.           D - Miniature print.
  65.           E - Portrait orientation.
  66.           F - Landscape orientation.
  67.           G - Graybar toggle.
  68.           H - Page Header Toggle.
  69.           I - Indent (0 - 25 spaces).
  70.           P - Port select (1 - 4).
  71.           S - Save Setup.
  72.           ? - About...
  73.           T - Spaces/Tab Selection.
  74.  
  75. Initial Defaults: Pica, Portrait, Gray Bar Off, Page Header On,
  76.                   Indent 5, Port LPT1, 4 Spaces/Tab.
  77.  
  78. Typing XPRT with no <filename> will display a list of options.
  79.  
  80. Typing XPRT with a <filename> will bring up the XPRT options menu.
  81.  
  82. Typing XPRT with a <filename> and [switches] will go directly to 
  83. printing.
  84.  
  85. --------------------------------------------------------------------------
  86.  
  87. The author may be reached via:
  88.  
  89.       Mail - Paul R. Bearden
  90.              North Texas Computer Solutions
  91.              Box 822 / 312 N. Illinois Street
  92.              Celina, TX     75009
  93.  
  94.      Phone - (214) 382-3244
  95.              After 6:00 pm Central Time
  96.  
  97. Compuserve - 72117, 510.
  98.  
  99.     C Echo - I try to stay up to date on C Echo messages. A note here
  100.              should reach me.
  101.  
  102. --------------------------------------------------------------------------
  103.  
  104.  /*****************************************************\
  105.  * This is for Polytron Version Control System 
  106.  *
  107.  * $Author:   PBEARDEN  $
  108.  * $Logfile:   C:/log/xprt.c_v  $
  109.  * $Revision:   3.1  $
  110.  * $Date:   11 Oct 1991  6:56:56  $
  111.  *
  112.  * $Log:   C:/log/xprt.c_v  $
  113.  * 
  114.  *    Rev 3.1   11 Oct 1991  6:56:56   PBEARDEN
  115.  * Removed reference to legal size paper in the help screens.
  116.  * 
  117.  *    Rev 3.0   27 Aug 1991 10:07:18   PBEARDEN
  118.  * 1. Added 'Save Setup' selection.
  119.  * 2. Minor tweaks to embedded page break handling code.
  120.  * 3. Beep when finished printing (if 10 pages or more.)
  121.  * 4. Print correct number of lines when printing w/o headers.
  122.  * 5. Add more 'About' screens. Added 'ESC' to break out of them.
  123.  * 6. Changed default 'Print to' file for batch printing.
  124.  * 
  125.  *    Rev 2.9   12 Aug 1991 19:00:50   PBEARDEN
  126.  * Added 'About...' selection to menu.
  127.  * 
  128.  *    Rev 2.8   08 Aug 1991 14:03:32   PBEARDEN
  129.  * Minor tweaks.
  130.  * 
  131.  *    Rev 2.7   31 Jul 1991 13:12:12   PBEARDEN
  132.  * 1. Don't send a formfeed if it is on the first line of a page.
  133.  * 2. Minor fix to wordwrap.
  134.  * 
  135.  *    Rev 2.6   29 Jul 1991  9:57:38   PBEARDEN
  136.  * Fixed some uninitialized variables that PC-Lint found.
  137.  * 
  138.  *    Rev 2.5   11 Jul 1991 17:42:28   PBEARDEN
  139.  * Command line (batch) operation will now exit after printing without
  140.  * displaying the copyright message or waiting for a keypress.
  141.  * 
  142.  *    Rev 2.4   04 Jul 1991 10:04:24   PBEARDEN
  143.  * Fixed a bug in the command line Header Toggle.
  144.  * 
  145.  *    Rev 2.3   04 Jul 1991  9:25:58   PBEARDEN
  146.  * Changed default Spaces/Tab from 5 to 4.
  147.  * 
  148.  *    Rev 2.2   02 Jul 1991 13:04:38   PBEARDEN
  149.  * 1. Added page header toggle.
  150.  * 2. Added space/tab selection.
  151.  * 
  152.  *    Rev 2.1   29 Jun 1991 18:42:32   PBEARDEN
  153.  * 1. Removed lots of redundant code.
  154.  * 2. Renamed CountLines () to CountPages ().
  155.  * 3. Added GetLine ().
  156.  * 4. Removed path from the filename in the page heading.
  157.  * 
  158.  *    Rev 2.0   19 Jun 1991 13:48:08   PBEARDEN
  159.  * 1. Display name of file to print at top of menu.
  160.  * 2. Provide means for entering a file name for Print-to-File.
  161.  * 3. Warn if Print-to-File file name already exists.
  162.  * 4. Don't display copyright message on registered copies.
  163.  * 
  164.  *    Rev 1.8   14 Jun 1991  6:46:30   PBEARDEN
  165.  * A few minor tweaks.
  166.  * 
  167.  *    Rev 1.7   13 Jun 1991 16:59:52   PBEARDEN
  168.  * Fixed a bug in the embedded page break handling.
  169.  * Added 'Printing page ...' message.
  170.  * 
  171.  *    Rev 1.6   12 Jun 1991 18:10:26   PBEARDEN
  172.  * Broke into several logical functions... finally.
  173.  * 
  174.  *    Rev 1.5   05 Jun 1991 13:23:18   PBEARDEN
  175.  * Squashed a few bugs in the blank line handling stuff.
  176.  * 
  177.  *    Rev 1.4   04 Jun 1991 18:59:48   PBEARDEN
  178.  * Throw away (don't print) blank lines at the end of a file.
  179.  * 
  180.  *    Rev 1.3   28 May 1991 13:37:06   PBEARDEN
  181.  * Added default instructions.
  182.  * Improved batch mode (command line switches).
  183.  * Allow 2 digit indent value.
  184.  * 
  185.  *    Rev 1.2   24 May 1991 11:48:54   PBEARDEN
  186.  * Added printer toggle for LPT1, LPT2, and LPT3.
  187.  * 
  188.  *    Rev 1.1   20 May 1991 13:22:54   PBEARDEN
  189.  * Fixed push/pop problem. Not enough pops.
  190.  * 
  191.  *    Rev 1.0   01 Mar 1991  8:59:56   PBEARDEN
  192.  * Initial revision.
  193.  * 
  194.  \*****************************************************/
  195.  
  196.